import request from '@/utils/request'

// 查询单条资质信息
export function getCertifi(id) {
  return request({
    url: `/qualifica/qualifica/${id}`,
    method: 'get'
  })
}
export function listCertifi(query) {
  return request({
    url: '/qualifica/qualifica/list',
    method: 'get',
    params: query
  })
}
// 添加
export function addCertifi(data) {
  return request({
    url: '/qualifica/qualifica',
    method: 'post',
    data
  })
}
// 修改
export function updateCertifi(data) {
  return request({
    url: '/qualifica/qualifica',
    method: 'put',
    data
  })
}
// 删除
export function delCertifi(id) {
  return request({
    url: `/qualifica/qualifica/${id}`,
    method: 'delete'
  })
}